package com.hrprojectback.mapper;

import com.hrprojectback.dto.Department;
import com.hrprojectback.dto.DepertmentPCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    List<Department> getDepartment(@Param("code") String code, @Param("name") String name, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);

    Integer getDeptCounts(@Param("code") String code, @Param("name") String name);

    int addDept(Department department);

    Department geteditDepartment(String code);

    int editDept(Department department);

    int deleteDept(String code);

    int YiShiXiAo(String code);

    int YiQiYong(String code);

    int getStatus(String code);

    List<Department> selectDepartmentNameTrees(Department department);

    List<DepertmentPCode> DepertmentPCode(DepertmentPCode depertmentPCode);
}
